package com.spancer.usercenter.service.user;

import com.spancer.usercenter.dao.user.UserMapper;
import com.spancer.usercenter.domain.entity.user.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * author by: mars
 * Date: 2019/10/20 16:01
 * Description:
 */
@Service
@Slf4j
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User findById(Integer id) {
        log.info("获取用信息，id={}", id);
        return this.userMapper.selectByPrimaryKey(id);
    }
}
